package com.tg.app.activity.base;


import com.tange.base.toolkit.StringUtils;

public interface JsCallFunName {
    String unregistration = "unregistration";
    String setTitle = "setTitle";
    String wxShare = "wxShare";
    String getUserInfo = "getUserInfo";
    String deviceReset = "deviceReset";
    String shareText = "shareText";

    String updateStatusBarColor = "updateStatusBarBackgroundColor";
    String updateStatusBarTextColor = "updateStatusBarTextWhite";
    String updateToolBarBackgroundColor = "updateToolBarBackgroundColor";
    String updateToolBarTextColor = "updateToolBarTextColor";
    String updateBackBtnColor = "updateBackBtnWhite";
    String setContentFullScreen = "setContentFullScreen";
    String wxLaunchMiniProgram = "wechatPay";

    String funcImplemented = "funcImplemented";
    String closeWebview = "closeWebview";

    String setBackButton = "setBackButton";
    String setCloseButton = "setCloseButton";
    String openWebview = "openWebview";
    static boolean isJsFun(String fun){
        return StringUtils.equalsIgnoreCase(fun, unregistration)
                || StringUtils.equalsIgnoreCase(fun, setTitle)
                || StringUtils.equalsIgnoreCase(fun, wxShare)
                || StringUtils.equalsIgnoreCase(fun, getUserInfo)
                || StringUtils.equalsIgnoreCase(fun, deviceReset)
                || StringUtils.equalsIgnoreCase(fun, updateStatusBarColor)
                || StringUtils.equalsIgnoreCase(fun, updateStatusBarTextColor)
                || StringUtils.equalsIgnoreCase(fun, updateToolBarBackgroundColor)
                || StringUtils.equalsIgnoreCase(fun, updateToolBarTextColor)
                || StringUtils.equalsIgnoreCase(fun, updateBackBtnColor)
                || StringUtils.equalsIgnoreCase(fun, setContentFullScreen)
                || StringUtils.equalsIgnoreCase(fun, wxLaunchMiniProgram)
                || StringUtils.equalsIgnoreCase(fun, funcImplemented)
                || StringUtils.equalsIgnoreCase(fun, closeWebview)
                || StringUtils.equalsIgnoreCase(fun, setBackButton)
                || StringUtils.equalsIgnoreCase(fun, openWebview)
                || StringUtils.equalsIgnoreCase(fun, setCloseButton)
                || StringUtils.equalsIgnoreCase(fun, shareText);
    }

}
